<ul class="nav nav-pills">
	<?php foreach ($map as $title => $route): ?>
		<li 
			<?php if(in_array($route_name, $route)/*$route == $route_name*/): ?> 
				class="active"
			<?php endif; ?>
		>
			<a href="<?php echo $view['router']->generate($route[0], array('listid' => $listid)) ?>"><?php echo $title ?></a>
		</li>
	<?php endforeach; ?>
</ul>